package cn.dong.ucenter.feign.fallback;

import cn.dong.ucenter.feign.SmsService;
import cn.dong.api.domain.CommonResult;
import com.netflix.client.ClientException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class SmsServiceImpl implements SmsService {
    /**
     * 发送信息
     *
     * @param phone
     * @return
     * @throws ClientException
     */
    @Override
    public CommonResult send(String phone) throws ClientException {
        log.error("触发熔断");
        return CommonResult.error();
    }
}
